package twitter;

import org.json.JSONException;
import org.json.JSONObject;

public class Tweet {

    private final JSONObject jTweet;


    public Tweet(JSONObject jTweet) {
        this.jTweet = jTweet;
    }

    public String getText(){
        try {
            return jTweet.getString("text");
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return "";
    }

}
